//
//  LVBaseSectionHeaderFooterView.m
//  ListViewModel
//
//  Created by 曹连华 on 2022/7/15.
//

#import "LVBaseSectionHeaderFooterView.h"
#import "LVBaseSectionHeaderFooterModel.h"

@interface LVBaseSectionHeaderFooterView ()

@property (nonatomic, assign) NSInteger section;

@end

@implementation LVBaseSectionHeaderFooterView

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        [self initUI];
    }
    return self;
}

- (void)initUI {
    self.backgroundColor = UIColor.grayColor;
}

- (void)updateWithHeaderFooterModel:(LVBaseSectionHeaderFooterModel *)headerFooterModel
                          atSection:(NSInteger)section {
    self.section = section;
    self.frame = CGRectMake(0, 0, headerFooterModel.size.width, headerFooterModel.size.height);
    
}

+ (NSString *)reuseIdentifier {
    return NSStringFromClass([self class]);
}

@end
